import request from '../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 视频文件上传
export const findFileListPage = data => {
    return request({
        url: baseRequest_url+'/admin/file/findFileListPage',
        method: 'get',
        params: data,
    });
};
// 视频文件上传
export const findFileInfo = data => {
    return request({
        url: baseRequest_url+'/admin/file/info/'+ data,
        method: 'get',
    });
};
// 视频文件上传
export const uploadVideo = data => {
    return request({
        url: baseRequest_url+'/admin/file/uploadVideo',
        method: 'post',
		data: data,
    });
};
// 图片文件上传
export const uploadImage = data => {
    return request({
        url: baseRequest_url+'/admin/file/uploadImage',
        method: 'post',
		data: data,
    });
};
// 文件上传
export const uploadFile = data => {
    return request({
        url: baseRequest_url+'/admin/file/uploadFile',
        method: 'post',
		data: data,
    });
};
// 文件删除
export const delFile = data => {
    return request({
        url: baseRequest_url+'/admin/file/del/'+data,
        method: 'delete',
    });
};